import request from '@/utils/request'

// 查询设备上下线日志列表
export function listDeviceOnOffLog(query) {
  return request({
    url: '/system/deviceOnOffLog/list',
    method: 'get',
    params: query
  })
}

// 查询设备上下线日志详细
export function getDeviceOnOffLog(id) {
  return request({
    url: '/system/deviceOnOffLog/' + id,
    method: 'get'
  })
}

// 新增设备上下线日志
export function addDeviceOnOffLog(data) {
  return request({
    url: '/system/deviceOnOffLog',
    method: 'post',
    data: data
  })
}

// 修改设备上下线日志
export function updateDeviceOnOffLog(data) {
  return request({
    url: '/system/deviceOnOffLog',
    method: 'put',
    data: data
  })
}

// 删除设备上下线日志
export function delDeviceOnOffLog(id) {
  return request({
    url: '/system/deviceOnOffLog/' + id,
    method: 'delete'
  })
}
